home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
1997.ZIP
/
INPFLD10.ARC
/
SETCURSR.C
< prev
next >
Wrap
Text File
|
1987-07-20
|
659b
|
21 lines
/* ------------------------------------------------------------ */
/* setcursor - set the cursor size */
/* M. Burton 20 Jul 87 Written for TurboC V1.0 */
/* */
/* Inputs - */
/* n char number of cursor lines */
/* ------------------------------------------------------------ */
#include <dos.h>
void setcursor(char n)
{
char top, bottom;
bottom = (peek(0x40,0x49) == 7) ? 13 : 7;
top = (n <= bottom) ? (bottom - n + 1) : 0;
_AX = 0x0100; /* these registers are position sensitive. */
_CH = top; /* DO NOT MOVE OR CHANGE THEM */
_CL = bottom;
geninterrupt(0x10);
}